package gp.app;

import java.io.File;
import java.io.FileInputStream;
import java.util.Properties;

public class T01_propertyReadout {

	public static void main(String[] args) {
		Properties p1 = new Properties();

		try {
			FileInputStream in = new FileInputStream("job1.txt");
			p1.load(in);
			in.close();
		} catch (Exception e) {
			e.printStackTrace();
		}

		System.out.println(p1.getProperty("Jobname"));
		System.out.println(p1.getProperty("Datafile"));
		System.out.println(p1.getProperty("ConstantsRange"));
		System.out.println(p1.getProperty("Constants"));
		
		String operators[] = p1.getProperty("Operators").split(",");
		for (int i=0; i<operators.length; i++)
			System.out.println(operators[i].trim());
		
		File f = new File(".\\"+p1.getProperty("Jobname").trim());
		f.mkdir();
		
	}

}
